package P9.T02;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class t02 {
    public static void main(String[] args) throws IOException {
        File f=new File("D:\\hello.test");
        FileOutputStream fos=new FileOutputStream(f);
        fos.write(68);
//        fos.close();
        File f2=new File("D:\\a.txt");
        if(f.compareTo(f2)==0){
            System.out.printf("%s和%s相同\n",f.getName(),f2.getName());
        }
    }
}
